<template>
  <div @click="toLogin">
    登陆
  </div>
</template>

<script setup>
  const useStore = useUserStore();
  const router = useRouter();

  const loginForm = ref({
    username: "admin",
    password: "admin123",
    rememberMe: false,
    code: "1234",
    uuid: ""
  });
  async function toLogin() {
    // setToken("12345678");
    let res = await useStore.login(loginForm.value)
    router.push("/")
  }
</script>

<style scoped>

</style>